#ifndef DUMMYDATA_H
#define DUMMYDATA_H
#include <QList>
#include <QTreeWidgetItem>
#include <QtDebug>
#include "actualdatamodel.h"
#include <defines.h>
#include <stdlib.h>
#define MAX_ITEMS 100


class dummyData
{
private:
        BROWSER browse;
        dummyData();

//environment variables
        QString appData;

        QString chromePath;
        QString firefoxPath;
        QString IEPath;
        QString OperaPath;

        QString bpath[4];
public:
    //constructor
        static dummyData& getInstance()
        {
            static dummyData* inst = 0;
            if(inst==0)
                return *(inst = new dummyData());
            else
                return *inst;
        }

    //for QTreeWidget and QListWidget
    QList<item> data;
    QList<QTreeWidgetItem*> topLevelItems;

    //methods
    void createItems();
    void createTree();

    void setDefaultBrowser(BROWSER b)
    {
        browse = b;
    }

    BROWSER getDefaultBrowser()
    {
        return browse;
    }

    QString& getDefaultBrowserPath()
    {
        return bpath[browse];
    }

    QString& getChromePath()
    {
        return chromePath;
    }

    QString& getFireFoxPath()
    {
        return firefoxPath;
    }

    QString& getIEPath()
    {
        return IEPath;
    }
    QString& getOperaPath()
    {
        return OperaPath;
    }
};

#endif // DUMMYDATA_H
